<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" CodeBehind="EditEmailTemplate.aspx.cs" Inherits="Impact.Web.Admin.EditEmailTemplate" ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <table class="AdminTable">
    
        <tr>
            <th colspan="3">Email Templates</th>
        </tr>
        
        <tr>
            <td>Template:</td>
            <td><asp:DropDownList ID="templates" AppendDataBoundItems="true" AutoPostBack="true" OnSelectedIndexChanged="TemplateSelected" runat="server">
                <asp:ListItem>-----------</asp:ListItem>
                </asp:DropDownList></td>
            <td><impact:SubmitCancel id="submit" OnSubmit="SaveTemplate" OnCancel="CancelCommand" runat="server" /></td>
        </tr>
        
        <tr>
            <td>Subject:</td>
            <td><asp:TextBox ID="subject" runat="server"></asp:TextBox></td>
            <td><asp:RequiredFieldValidator ID="subjectRequired" ControlToValidate="subject" ErrorMessage="Required" runat="server"></asp:RequiredFieldValidator></td>
        </tr>
        
        <tr>
            <td colspan="3"><asp:TextBox ID="templateTextBox" TextMode="multiLine" Width="600" Height="400" runat="server"></asp:TextBox></td>
        </tr>

    </table>

</asp:Content>